package org.cfx.auth.mapper;

import org.cfx.auth.domain.AuthPermission;
import org.cfx.auth.domain.AuthRolePermission;
import org.cfx.auth.domain.dto.RoleDto;
import org.cfx.basic.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cfx
 * @since 2023-09-11
 */
@Repository
public interface AuthPermissionMapper extends BaseMapper<AuthPermission> {

    /**
     * 上级权限
     */
    List<AuthPermission> queryTree();

    void deleteAll();

    void addList(List<AuthPermission> childs);

}
